﻿Imports System
Imports System.ComponentModel.Design.Serialization
Imports System.Drawing

Namespace System.Workflow.ComponentModel.Design
    Friend NotInheritable Class ActivityDesignerLayoutSerializerProvider
        Implements IDesignerSerializationProvider
        ' Methods
        Private Function System.ComponentModel.Design.Serialization.IDesignerSerializationProvider.GetSerializer(ByVal manager As IDesignerSerializationManager, ByVal currentSerializer As Object, ByVal objectType As Type, ByVal serializerType As Type) As Object Implements IDesignerSerializationProvider.GetSerializer
            If (GetType(Color) Is objectType) Then
                currentSerializer = New ColorMarkupSerializer
                Return currentSerializer
            End If
            If (GetType(Size) Is objectType) Then
                currentSerializer = New SizeMarkupSerializer
                Return currentSerializer
            End If
            If (GetType(Point) Is objectType) Then
                currentSerializer = New PointMarkupSerializer
            End If
            Return currentSerializer
        End Function

    End Class
End Namespace

